
<script type="text/javascript">
	if (typeof(SearchIndex) != 'function'){
		var arr = <?= ($this->arrJsCss != '')?$this->arrJsCss:"''"?>;			
		loadfileJsCss(arr);
	}		
</script>
<?php echo $this->leftTree;?>
<div class = "have_tree ctlist">
	<form action="" method="POST" id="IndexDataFrm" name="IndexDataFrm" autocomplete="off">
		<!--Cac doi tuong hidden tren form-->
		<?php
			$check ='';
			echo $this->formHidden('hdn_current_page',$this->iCurrentPage,null);
			echo $this->formHidden('hdn_record_number_page',$this->iNumberRecordPerPage,null);
			echo $this->formHidden('typehdn',"TRAINING",null);
			echo $this->formHidden('hdn_number',$this->iNumberRecordAll,null);
			echo $this->formHidden('TD03','',null);
			echo $this->formHidden('TD03name','',null);
			echo $this->formHidden('hdnpath','',null);
            echo $this->formHidden('hdn_from_date','',null);
            echo $this->formHidden('hdn_to_date','',null);
        $arrConst = $this->arrConst;
		?>
		<div class = "searh-fixed filterdata">
			<div class="search-container">

                <div class="search_date">
                    <label style="width:20%;">Ngày tạo</label>
                    Từ ngày<input id="from_date" id="from_date" class="textbox_tab" type="textbox" value="">
                    Đến ngày<input id="to_date" id="to_date" class="textbox_tab" type="textbox" value="">
                </div>

				<div class = "sd">
					<div class="sd3">
								<input type="checkbox" name="type" id="type" checked="checked"/>
								<label class = "lbl_title normal_label" for="type">Tìm kiếm toàn bộ</label>
					</div>
					<div class = "sd1">
						<input type="text" value="" autocomplete="off" class="textbox" id = "TD18" name = "TD18">
					</div>
					<div class = "sd2">									
						<input type = "button" value = "Tìm kiếm" class = "link-button searchbtn" id = "searchbtn">
					</div>
				</div>
			</div>
			<div align="right" class="button-link-container">
					<div class="normal_title blc-left"><?=$this->titleBody;?></div>
					<div class="blc-right" style="padding-right: 3px;">
						<input id = "view" title = "Xem chi tiết" type="button" value="Xem chi tiết" class="link-button viewTraining" style="display:inline">
					</div>			
			</div>
			<div style="clear:both;"></div>
			<div id="loadTreeUrl" class="breadcrumbs"></div>
			<!-- Action lien quan -->		
		</div>	
		<!-- Màn hình danh sách -->
		<div id = "table-container"></div>
		<!--Hien thi trang can xem!-->
		<table class="table-page-number dsppage" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td class = "left-col small_label" valign="top">
					<small class="small_starmark" id = "sdocpertotal"></small>
				</td>
				<td class = "center-col" align="center" id = "generateStringNumberPage"></td>
				<td class = "right-col normal_label" id = "generateHtmlSelectBoxPage">Hiển thị <select class='textbox' id = 'cbo_nuber_record_page' name='cbo_nuber_record_page' optional='true' style='width:60' onChange='myRecord.changeNumberRowPerPageModal(this)'><?php 
					echo Efy_Library::_generateSelectOption($this->arrListItem, 'C_CODE', 'C_CODE', 'C_NAME', $this->arrListItem[0]);
				?></select>Hồ sơ/1 trang</td>
			</tr>
		</table>
		<div class="button-container">
				<!-- <input id = "print" title = "In" type="button" value="In" class="link-button print" style="display:inline"> -->
				<input id = "view" title = "Xem chi tiết" type="button" value="Xem chi tiết" class="link-button viewTraining" style="display:inline">
			</div>		
	</form>	

	<div id = "viewDatafrm"></div>


</div>

<script type="text/javascript">
	$(document).bind("click", function(event) {
		$("div.popup").hide();
	});
	baseUrl = '<?=$this->baseUrl();?>';		
	var objXmlTemp = '';
	if(typeof(mySearchIndex) === 'undefined'){						
		mySearchIndex = new SearchIndex(baseUrl,'mtl','search','indexdata', objXmlTemp);			
	}else{					
		objXmlTemp = mySearchIndex.xmlData;			
		mySearchIndex = new SearchIndex(baseUrl,'mtl','search','indexdata',objXmlTemp);		
	}

	$('#TD18').focus(function() {
			shortcut.remove('Enter');
			shortcut.add("Enter",function() {
			mySearchIndex.ldmod();
		});
	});
    $('#from_date').change(function() {
        $('form#IndexDataFrm #hdn_from_date').val($('form#IndexDataFrm #from_date').val());
    });
    $('#to_date').change(function() {
        $('form#IndexDataFrm #hdn_to_date').val($('form#IndexDataFrm #to_date').val());
    });

	urlPath = mySearchIndex.urlPath;	
	fixTitle();
	mySearchIndex.ldmod();
    $(function(){$( "#from_date" ).datepicker();});
    $(function(){$( "#to_date" ).datepicker();});
</script>
<style type="text/css">
.jstree-default a.jstree-search {
    color: #1A62B4;
    font-weight: bold;
}
.ui-widget-header {
    background: none repeat scroll 0 0 #3774B7;
    border: none;
    color: #FFF701;
    font-weight: bold;
}

.ui-dialog .ui-dialog-title {
    float: left;
    margin: 0.1em 0;
    text-align: center;
}
.ui-dialog .ui-dialog-title {
    float: left;
    margin: 0.1em 0;
    text-align: center;
}
#IndexDataFrm div div label {
    display: inline-block;
    font-family: arial;
    font-size: 13px;
    font-weight: normal;
    line-height: 14px;
    color: #000;
}
</style>




